package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.TreeResult;
import com.itheima.pojo.Role;

import java.util.List;
import java.util.Map;

public interface RoleService {
    List<TreeResult> findAll();

    PageResult findPage(Integer currentPage, Integer pageSize, String queryString);

    Map findByRoleId(Integer id);

    Role findById(Integer id);

    Map findAllByRoleId();

    Map findIdByRoleId(Integer id);

    void edit(Integer[] permissionIds, Integer[] menus, Role role);

    List<Role> getRoleList(String username);
}
